<template>
	<view class="centers">
		<up-image class="infoimg" width="100%"
			src="https://tenfei03.cfp.cn/creative/vcg/800/new/VCG211454662865.jpg"></up-image>
		<view class="btnreload">重新生成</view>
		<view class="action">
			<view class="" @click="show=true">保存</view>
			<view class="">分享</view>
		</view>
		<u-action-sheet @close="show=false" @select="onselect" :actions="list" :round="20" cancelText="取消" :show="show"></u-action-sheet>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				list: [{
						name: '保存为手机',
						id:1,
					},
					{
						name: '保存为时光机',
						id:2,
					},
					{
						name: '保存为头像',
						id:3
					},
				],
			}
		},
		methods: {
			btnreload() {

			},
			onselect(v){
				console.log(v, 'vvv123')
				if(v.id==1){
					uni.uploadFile({
						url:'https://tenfei03.cfp.cn/creative/vcg/800/new/VCG211454662865.jpg'
					})
				}
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.centers {
		padding: 24rpx;
	}

	.btnreload {
		padding: 24rpx;
		text-align: center
	}

	;

	.action {
		display: flex;
		justify-content: space-around;
	}
</style>